<?php
/**
 * 系統名稱: Lotto 系統
 * 檔案說明: 專案管理-修改
 * $Author$
 * $Id$
 *
 */
$intID = (int)$_data["ID"];
$strHostName = $_data["HostName"];
$arrDirectID = $_data["arrDID"];
$strMemo = $_data["Memo"];

$strDirectID = "";
if(is_array($arrDirectID))$strDirectID = join(",", $arrDirectID);

//更改資料
if(!setVirtualHostData($intID, $strHostName, $strDirectID, $strMemo))ErrMsgOutputHTML("Error", "", 1);

$strLog = "ID：".$intID."\n";
$strLog .= "HostName：".$strHostName."\n";
$strLog .= "DirectID：".$strDirectID."\n";
$strLog .= "Memo：".$strMemo."\n";
AddData_Log("", "修改網域總監對應資料", $strLog);

if(!getVirtualHostDataFile()){
	$strLog .= $GLOBALS["errormessage"]."\n";
	$strLog .= $GLOBALS["errorhidden"]."\n";
	$objLog -> AddLog("", "產生網域總監對應資料檔案錯誤", $strLog);

	ErrMsgOutputHTML("Error", "", 1);
}

header("Location: index.php?op=List&Page=".$_data["Page"]);
?>